﻿using System;
using Gj;
using UnityEngine;
using UnityEngine.UI;

public class SmallCamera : MonoBehaviour
{
    public GameObject Body;
    public Camera Camera;
    public Vector3 offset;

    public Vector3 position = Vector3.zero;

    public void Set(Vector3 position)
    {
        Camera.transform.position = position + offset;
    }

    public void Show()
    {
        Debug.LogError("Show");
        Camera.gameObject.SetActive(true);
        Body.SetActive(true);
    }

    public void Hide()
    {
        Debug.LogError("Hide");
        Camera.gameObject.SetActive(false);
        Body.SetActive(false);
    }
}